/**
 * Created by zhangbiao on 2017/8/23.
 */

"use strict";

//=========================
// 引入子组建和子组建reducer
//=========================
export const CHANGE_OTHER_FILMS = "CHANGE_OTHER_FILMS" ;


export const OtherFilmsReducers = (state = {films:[],count:"0"}, action)=>{
    switch (action.type){
        case CHANGE_OTHER_FILMS :
            state = action.data ;
        default :
            return state ;
    }
} ;

export const mapStateToProps = state =>{
    return {
        detailOtherFilms : state.app.filmDetail.otherFilms
    }
} ;

export const mapDispatchToProps = dispatch =>{
    return{

    }
} ;

